package com.k2data.k2app.service;

import com.k2data.k2app.util.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author cuilibo@k2data.com.cn
 * @Date 17-12-27 下午2:58.
 */
@Service
public class RedisService {
    @Autowired
    private RedisUtils redisUtils;

    public Object get(String key) {
        return redisUtils.getValue(key);
    }

    public void set(String key, String value) {
        redisUtils.setValue(key, value);
    }

    public void set(String key, Object value) {
        redisUtils.set(key, value);
    }
}
